package executeScript;

import org.junit.jupiter.api.Test;
import org.openqa.selenium.chrome.ChromeDriver;

// 在游览器中执行 js 脚本
public class ExecuteScriptTest {
    ChromeDriver driver = new ChromeDriver();

    @Test
    public void test() {
        driver.get("https://www.baidu.com/");
        driver.executeScript("console.log(\"hello world\")");

//        driver.quit();
    }
}
